﻿@model HdipCricketClub.Models.ClubFixtureTeam

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ClubFixtureTeam</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.player_id, "Member")
        </div>
        <div class="editor-field">
            @Html.DropDownList("player_id", String.Empty)
            @Html.ValidationMessageFor(model => model.player_id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.batsman_number)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.batsman_number)
            @Html.ValidationMessageFor(model => model.batsman_number)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.how_out, "DismissalType")
        </div>
        <div class="editor-field">
            @Html.DropDownList("how_out", String.Empty)
            @Html.ValidationMessageFor(model => model.how_out)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fielder_name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.fielder_name)
            @Html.ValidationMessageFor(model => model.fielder_name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.bowler_name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.bowler_name)
            @Html.ValidationMessageFor(model => model.bowler_name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.batting_runs)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.batting_runs)
            @Html.ValidationMessageFor(model => model.batting_runs)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.bowler_number)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.bowler_number)
            @Html.ValidationMessageFor(model => model.bowler_number)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.overs)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.overs)
            @Html.ValidationMessageFor(model => model.overs)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.maidens)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.maidens)
            @Html.ValidationMessageFor(model => model.maidens)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.bowling_runs)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.bowling_runs)
            @Html.ValidationMessageFor(model => model.bowling_runs)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.wickets)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.wickets)
            @Html.ValidationMessageFor(model => model.wickets)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.contacted)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.contacted)
            @Html.ValidationMessageFor(model => model.contacted)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.confirmed)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.confirmed)
            @Html.ValidationMessageFor(model => model.confirmed)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
